<?
/*
 * Copyright 2004-2005 Sigve Indregard.
 *
 * This file is part of Laivsys.
 *
 * Laivsys is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Laivsys is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Laivsys; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

/*
 * $Id: pameldtrapport.php 6 2005-07-11 23:14:47Z say $
 */
 
include("../db.php");
include("auth.php");

$sql = "SELECT Navn, Adresse, Postnrsted, Epost, Telefon, Parorende, Parorende_tlf, Fodselsdato ".
		"FROM deltakere WHERE LaivID=$laivid AND Godkjent=1 ORDER BY Navn";

$deltakere = mysql_query($sql) or die("En MySQL-feil oppstod:<br/>".mysql_error());

echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
?>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
	<title>P�meldte</title>
	<style type="text/css">
		table {
			border-collapse: collapse;
			border: 2px solid black;
		}

		th {
			border-bottom: 2px solid black;
			border-right: 1px solid black;
			background: #cdcdcd;
			font-size: 10pt;
			font-family: serif;
		}
		td {
			border-right: 1px solid black;
			border-bottom: 1px solid black;
			font-size: 10pt;
			font-family: serif;
		}
	</style>
</head>
<body>
<table>
<tr>
	<th>Navn</th>
	<th>Adresse</th>
	<th>Postnr./sted</th>
	<th>E-post</th>
	<th>Telefon</th>
	<th>P�r�rende</th>
	<th>P�r. tlf.</th>
	<th>F�dselsdato</th>
</tr>
<?
while ($deltaker=mysql_fetch_row($deltakere)) {
	echo "<tr>\n";
	foreach ($deltaker as $felt)
		echo "\t<td>".htmlspecialchars($felt)."</td>\n";
	echo "</tr>\n";
}
?>
</body>
</html>
